﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DTO;
using BUS;

namespace CDT_CSDLNC
{
    public partial class ucThongTinGiaoDich : UserControl
    {
        public ucThongTinGiaoDich()
        {
            InitializeComponent();
        }

        public string makhachhang;

        private void ucThongTinGiaoDich_Load(object sender, EventArgs e)
        {
            GiaoDichNapTienDTO gd = GiaoDichNapTienBUS.getGiaoDich(makhachhang);
            lbMaGiaoDich.Text = gd.MaGiaoDich;
            lbThoiGian.Text = gd.ThoiGianNap.ToString("dd/MM/yyyy");
            lbSoTien.Text = gd.SoTienNap.ToString();
            lbHinhThuc.Text = gd.HinhThucNap;
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            frmMain main = (frmMain)this.ParentForm;
            main.kb4_buoc = 5;
            main.KichBan4();
        }
    }
}
